#ifndef ZHILAISDK_TOOL_CSETTINGWND_H_
#define ZHILAISDK_TOOL_CSETTINGWND_H_

#include <QWidget>
#include <tuple>
#include <vector>

#include "ui_CSettingWnd.h"
#include "util/config.h"

class CSettingWnd : public QWidget
{
    Q_OBJECT
public:
    CSettingWnd(QWidget* parent = nullptr);
    ~CSettingWnd();

protected:
    void showEvent(QShowEvent* e);

protected slots:
    void on_btn_add2_clicked();
    void on_btn_clear2_clicked();
    void on_btn_save_clicked();
    void on_btn_reload_clicked();

private:
    Ui::CSettingWnd ui;
    std::vector<std::tuple<int32_t, int32_t, std::string>> dcb_list_;

    CZlBaseConfig config_;
};

#endif  // ZHILAISDK_TOOL_CSETTINGWND_H_